<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: qwt_thermo.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('qwt__thermo_8cpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qwt_thermo.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Qwt Widget Library</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (C) 1997   Josef Wilgen</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This library is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *****************************************************************************/</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;qwt_thermo.h&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;qwt_scale_draw.h&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;qwt_scale_map.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;qwt_color_map.h&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;qwt_math.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; </div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;qpainter.h&gt;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;qevent.h&gt;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &lt;qdrawutil.h&gt;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;qstyle.h&gt;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;qstyleoption.h&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;qmargins.h&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;algorithm&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> qwtDrawLine( QPainter* painter, <span class="keywordtype">int</span> pos,</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <span class="keyword">const</span> QColor&amp; color, <span class="keyword">const</span> QRect&amp; pipeRect, <span class="keyword">const</span> QRect&amp; liquidRect,</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    Qt::Orientation orientation )</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;{</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    painter-&gt;setPen( color );</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="keywordflow">if</span> ( orientation == Qt::Horizontal )</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    {</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;        <span class="keywordflow">if</span> ( pos &gt;= liquidRect.left() &amp;&amp; pos &lt; liquidRect.right() )</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;            painter-&gt;drawLine( pos, pipeRect.top(), pos, pipeRect.bottom() );</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    }</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    {</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        <span class="keywordflow">if</span> ( pos &gt;= liquidRect.top() &amp;&amp; pos &lt; liquidRect.bottom() )</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;            painter-&gt;drawLine( pipeRect.left(), pos, pipeRect.right(), pos );</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    }</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;}</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">static</span> <a class="code" href="class_q_vector.html">QVector&lt; double &gt;</a> qwtTickList( <span class="keyword">const</span> <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a>&amp; scaleDiv )</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;{</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <a class="code" href="class_q_vector.html">QVector&lt; double &gt;</a> values;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordtype">double</span> lowerLimit = scaleDiv.<a class="code" href="class_qwt_scale_div.html#a30f6cd443fdbc5d57b3503893c7cbfa6">interval</a>().<a class="code" href="class_qwt_interval.html#a0df143a36d76a677976d82987cab8a06">minValue</a>();</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="keywordtype">double</span> upperLimit = scaleDiv.<a class="code" href="class_qwt_scale_div.html#a30f6cd443fdbc5d57b3503893c7cbfa6">interval</a>().<a class="code" href="class_qwt_interval.html#a44820fa5d6e6cefa59dc31ea0d522d61">maxValue</a>();</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160; </div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keywordflow">if</span> ( upperLimit &lt; lowerLimit )</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        qSwap( lowerLimit, upperLimit );</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    values += lowerLimit;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> tickType = <a class="code" href="class_qwt_scale_div.html#af21aedaa886dd5e067cf63505838736ca6af9f3b95636a6fdebb4824c6db0ab9e">QwtScaleDiv::MinorTick</a>;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        tickType &lt; <a class="code" href="class_qwt_scale_div.html#af21aedaa886dd5e067cf63505838736ca86796bbf72d5eb7162a924ba27ce6553">QwtScaleDiv::NTickTypes</a>; tickType++ )</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    {</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keyword">const</span> <a class="code" href="class_q_list.html">QList&lt; double &gt;</a> ticks = scaleDiv.<a class="code" href="class_qwt_scale_div.html#a838db100c7f0f8454bf8559e89cb4d41">ticks</a>( tickType );</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i &lt; ticks.count(); i++ )</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        {</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">double</span> v = ticks[i];</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;            <span class="keywordflow">if</span> ( v &gt; lowerLimit &amp;&amp; v &lt; upperLimit )</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;                values += v;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        }</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    }</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    values += upperLimit;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keywordflow">return</span> values;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;}</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="keyword">class </span>QwtThermo::PrivateData</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;{</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    PrivateData()</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        : <a class="code" href="class_qwt_thermo.html#ae02388e3d666ef3f40dac21cc1a7d2d6">orientation</a>( Qt::Vertical )</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        , <a class="code" href="class_qwt_thermo.html#ae8f4e4ceb3c3c6798d026190e9946e8d">scalePosition</a>( <a class="code" href="class_qwt_thermo.html">QwtThermo</a>::<a class="code" href="class_qwt_thermo.html#a4d7af32d29d1cc18e23b9143cf7ad498aaf66e72accc5a41142773f586158c067">TrailingScale</a> )</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        , <a class="code" href="class_qwt_thermo.html#a1d0c15c3d94e7e063323a9e4d91c58e8">spacing</a>( 3 )</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        , <a class="code" href="class_qwt_thermo.html#ad30227f6efef0b8fc0c13a9b2975b6e8">borderWidth</a>( 2 )</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        , <a class="code" href="class_qwt_thermo.html#a4f3901a508a3d299a3a17b1a2c4753fc">pipeWidth</a>( 10 )</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        , <a class="code" href="class_qwt_thermo.html#aee9cf6c14feecc68fd866b0a5c1ab06b">alarmLevel</a>( 0.0 )</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        , <a class="code" href="class_qwt_thermo.html#ad64e8d51c78a359494c48e02d9ce5caa">alarmEnabled</a>( false )</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        , autoFillPipe( true )</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        , <a class="code" href="class_qwt_thermo.html#ae5088be410bd7611acbcdd914da1f289">originMode</a>( <a class="code" href="class_qwt_thermo.html">QwtThermo</a>::<a class="code" href="class_qwt_thermo.html#a932d866dd7782cc56cd7fc3e5abb3183ae45b6edabbd2a63aa1551b7ed9b10f76">OriginMinimum</a> )</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        , <a class="code" href="class_qwt_thermo.html#a52c28bd5710d494de7f25454b0aebd95">origin</a>( 0.0 )</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        , <a class="code" href="class_qwt_thermo.html#a8d9285fdda3f6f26fc0d9aa35b5f021e">colorMap</a>( NULL )</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        , <a class="code" href="class_qwt_thermo.html#a9d8083ca1d7c3980f29e996893b73a3b">value</a>( 0.0 )</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    {</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        <a class="code" href="class_qwt_thermo.html#a97df48b3bb00fc5e7af5719d2b5e6ae3">rangeFlags</a> = <a class="code" href="class_qwt_interval.html#a3a4b4e49495108c660fc07a62af7ac54ad8a550b5eb1062cd84bcba22c60e5e60">QwtInterval::IncludeBorders</a>;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    }</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    ~PrivateData()</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    {</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        <span class="keyword">delete</span> <a class="code" href="class_qwt_thermo.html#a8d9285fdda3f6f26fc0d9aa35b5f021e">colorMap</a>;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    }</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    Qt::Orientation <a class="code" href="class_qwt_thermo.html#ae02388e3d666ef3f40dac21cc1a7d2d6">orientation</a>;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <a class="code" href="class_qwt_thermo.html#a4d7af32d29d1cc18e23b9143cf7ad498">QwtThermo::ScalePosition</a> <a class="code" href="class_qwt_thermo.html#ae8f4e4ceb3c3c6798d026190e9946e8d">scalePosition</a>;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_qwt_thermo.html#a1d0c15c3d94e7e063323a9e4d91c58e8">spacing</a>;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_qwt_thermo.html#ad30227f6efef0b8fc0c13a9b2975b6e8">borderWidth</a>;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_qwt_thermo.html#a4f3901a508a3d299a3a17b1a2c4753fc">pipeWidth</a>;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <a class="code" href="class_qwt_interval.html#aed8121e9a5992e790926d85cd20220a3">QwtInterval::BorderFlags</a> <a class="code" href="class_qwt_thermo.html#a97df48b3bb00fc5e7af5719d2b5e6ae3">rangeFlags</a>;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_qwt_thermo.html#aee9cf6c14feecc68fd866b0a5c1ab06b">alarmLevel</a>;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_qwt_thermo.html#ad64e8d51c78a359494c48e02d9ce5caa">alarmEnabled</a>;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    <span class="keywordtype">bool</span> autoFillPipe;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <a class="code" href="class_qwt_thermo.html#a932d866dd7782cc56cd7fc3e5abb3183">QwtThermo::OriginMode</a> <a class="code" href="class_qwt_thermo.html#ae5088be410bd7611acbcdd914da1f289">originMode</a>;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_qwt_thermo.html#a52c28bd5710d494de7f25454b0aebd95">origin</a>;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <a class="code" href="class_qwt_color_map.html">QwtColorMap</a>* <a class="code" href="class_qwt_thermo.html#a8d9285fdda3f6f26fc0d9aa35b5f021e">colorMap</a>;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160; </div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_qwt_thermo.html#a9d8083ca1d7c3980f29e996893b73a3b">value</a>;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;};</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160; </div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a1d5bb3608c29cd8d104f22f0ffe31098">  121</a></span>&#160;<a class="code" href="class_qwt_thermo.html#a1d5bb3608c29cd8d104f22f0ffe31098">QwtThermo::QwtThermo</a>( QWidget* parent )</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    : <a class="code" href="class_qwt_abstract_scale.html">QwtAbstractScale</a>( parent )</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;{</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    m_data = <span class="keyword">new</span> PrivateData;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    QSizePolicy policy( QSizePolicy::MinimumExpanding, QSizePolicy::Fixed );</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;orientation == Qt::Vertical )</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        policy.transpose();</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    setSizePolicy( policy );</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    setAttribute( Qt::WA_WState_OwnSizePolicy, <span class="keyword">false</span> );</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    layoutThermo( <span class="keyword">true</span> );</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;}</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#ad0e2bd43eae2402ade490a5e6c4ef4ae">  137</a></span>&#160;<a class="code" href="class_qwt_thermo.html#ad0e2bd43eae2402ade490a5e6c4ef4ae">QwtThermo::~QwtThermo</a>()</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;{</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="keyword">delete</span> m_data;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;}</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160; </div>
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#aa2ce6d6d20097fead0baca0ab31ef1b2">  157</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#aa2ce6d6d20097fead0baca0ab31ef1b2">QwtThermo::setRangeFlags</a>( <a class="code" href="class_qwt_interval.html#aed8121e9a5992e790926d85cd20220a3">QwtInterval::BorderFlags</a> flags )</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;{</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;rangeFlags != flags )</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    {</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        m_data-&gt;rangeFlags = flags;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        update();</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    }</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;}</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160; </div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a97df48b3bb00fc5e7af5719d2b5e6ae3">  170</a></span>&#160;<a class="code" href="class_qwt_interval.html#aed8121e9a5992e790926d85cd20220a3">QwtInterval::BorderFlags</a> <a class="code" href="class_qwt_thermo.html#a97df48b3bb00fc5e7af5719d2b5e6ae3">QwtThermo::rangeFlags</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;rangeFlags;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;}</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160; </div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a2e974873b3387a96f400c9d8d93b08dd">  181</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#a2e974873b3387a96f400c9d8d93b08dd">QwtThermo::setValue</a>( <span class="keywordtype">double</span> value )</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;{</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;value != <a class="code" href="class_qwt_thermo.html#a9d8083ca1d7c3980f29e996893b73a3b">value</a> )</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    {</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;        m_data-&gt;value = <a class="code" href="class_qwt_thermo.html#a9d8083ca1d7c3980f29e996893b73a3b">value</a>;</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;        update();</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    }</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;}</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160; </div>
<div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a9d8083ca1d7c3980f29e996893b73a3b">  191</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_thermo.html#a9d8083ca1d7c3980f29e996893b73a3b">QwtThermo::value</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;value;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;}</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a8b5ab653b893e41116200570632ad1c3">  207</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#a8b5ab653b893e41116200570632ad1c3">QwtThermo::setScaleDraw</a>( <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a>* scaleDraw )</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;{</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    <a class="code" href="class_qwt_abstract_scale.html#a950c5bf521dc704b78f76c7951346288">setAbstractScaleDraw</a>( <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a> );</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    layoutThermo( <span class="keyword">true</span> );</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;}</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160; </div>
<div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">  217</a></span>&#160;<span class="keyword">const</span> <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a>* <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">QwtThermo::scaleDraw</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span> <span class="keyword">const </span><a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a>* <span class="keyword">&gt;</span>( <a class="code" href="class_qwt_abstract_scale.html#a473e84e72bd52afac58c04d004b5c06a">abstractScaleDraw</a>() );</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;}</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160; </div>
<div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a7d0f262032c034c5da703ec2f2d120b7">  226</a></span>&#160;<a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a>* <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">QwtThermo::scaleDraw</a>()</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;{</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span> <a class="code" href="class_qwt_scale_draw.html">QwtScaleDraw</a>* <span class="keyword">&gt;</span>( <a class="code" href="class_qwt_abstract_scale.html#a473e84e72bd52afac58c04d004b5c06a">abstractScaleDraw</a>() );</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;}</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160; </div>
<div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a5b51e216ac008a27cc0af38094251917">  235</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#a5b51e216ac008a27cc0af38094251917">QwtThermo::paintEvent</a>( QPaintEvent* event )</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;{</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    QPainter painter( <span class="keyword">this</span> );</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    painter.setClipRegion( event-&gt;region() );</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160; </div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    QStyleOption opt;</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    opt.initFrom(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    style()-&gt;drawPrimitive(QStyle::PE_Widget, &amp;opt, &amp;painter, <span class="keyword">this</span>);</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160; </div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    <span class="keyword">const</span> QRect tRect = <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a>();</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160; </div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    <span class="keywordflow">if</span> ( !tRect.contains( event-&gt;rect() ) )</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    {</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;        <span class="keywordflow">if</span> ( m_data-&gt;scalePosition != <a class="code" href="class_qwt_thermo.html#a4d7af32d29d1cc18e23b9143cf7ad498a54c98c1e9500e24a5f92e71a7020acbd">QwtThermo::NoScale</a> )</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;            <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_abstract_scale_draw.html#ac4442d7480db1288971e7eac15142467">draw</a>( &amp;painter, palette() );</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    }</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160; </div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> bw = m_data-&gt;borderWidth;</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160; </div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    <span class="keyword">const</span> QBrush brush = palette().brush( QPalette::Base );</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    qDrawShadePanel( &amp;painter,</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;        tRect.adjusted( -bw, -bw, bw, bw ),</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;        palette(), <span class="keyword">true</span>, bw,</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;        m_data-&gt;autoFillPipe ? &amp;brush : NULL );</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160; </div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    <a class="code" href="class_qwt_thermo.html#ac60f96f461fe4ba45a9d91d193aa36b9">drawLiquid</a>( &amp;painter, tRect );</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;}</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160; </div>
<div class="line"><a name="l00267"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a14fd393695698276817c5f93150fcdd5">  267</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#a14fd393695698276817c5f93150fcdd5">QwtThermo::resizeEvent</a>( QResizeEvent* event )</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;{</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;    Q_UNUSED( event );</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    layoutThermo( <span class="keyword">false</span> );</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;}</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160; </div>
<div class="line"><a name="l00277"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#aaa00f3c0a2956a0e9b353a01d23e066a">  277</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#aaa00f3c0a2956a0e9b353a01d23e066a">QwtThermo::changeEvent</a>( QEvent* event )</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;{</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;    <span class="keywordflow">switch</span>( event-&gt;type() )</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    {</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;        <span class="keywordflow">case</span> QEvent::StyleChange:</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;        <span class="keywordflow">case</span> QEvent::FontChange:</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;        {</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;            layoutThermo( <span class="keyword">true</span> );</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;        }</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;    }</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;}</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160; </div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;<span class="keywordtype">void</span> QwtThermo::layoutThermo( <span class="keywordtype">bool</span> update_geometry )</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;{</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;    <span class="keyword">const</span> QRect tRect = <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a>();</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> bw = m_data-&gt;borderWidth + m_data-&gt;spacing;</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">bool</span> inverted = ( <a class="code" href="class_qwt_abstract_scale.html#ae5696dae4e4cc4332a84453a0ce18cc8">upperBound</a>() &lt; <a class="code" href="class_qwt_abstract_scale.html#a41b46b9bf8b6d7986cc64c766f3b667c">lowerBound</a>() );</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160; </div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;    <span class="keywordtype">int</span> from, to;</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160; </div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;orientation == Qt::Horizontal )</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;    {</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;        from = tRect.left();</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;        to = tRect.right();</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160; </div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;        <span class="keywordflow">if</span> ( m_data-&gt;rangeFlags &amp; <a class="code" href="class_qwt_interval.html#a3a4b4e49495108c660fc07a62af7ac54aa7fde04c41d882187bb13f0104da7240">QwtInterval::ExcludeMinimum</a> )</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        {</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;            <span class="keywordflow">if</span> ( inverted )</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;                to++;</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;                from--;</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;        }</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;        <span class="keywordflow">if</span> ( m_data-&gt;rangeFlags &amp; <a class="code" href="class_qwt_interval.html#a3a4b4e49495108c660fc07a62af7ac54a70e70e65956ae319e507bc38b792c434">QwtInterval::ExcludeMaximum</a> )</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;        {</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;            <span class="keywordflow">if</span> ( inverted )</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;                from--;</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;                to++;</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;        }</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160; </div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;        <span class="keywordflow">if</span> ( m_data-&gt;scalePosition == <a class="code" href="class_qwt_thermo.html#a4d7af32d29d1cc18e23b9143cf7ad498aaf66e72accc5a41142773f586158c067">QwtThermo::TrailingScale</a> )</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;        {</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;            <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_scale_draw.html#a7a4de0055dc1358e55c3357366a54091">setAlignment</a>( <a class="code" href="class_qwt_scale_draw.html#acd7ceeeac592ef08530788580b461c66a2386da707d8f736701b8ab98f778648c">QwtScaleDraw::TopScale</a> );</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;            <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_scale_draw.html#a15f91bdd71ec87abe618e00cf18aa3f1">move</a>( from, tRect.top() - bw );</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;        }</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;        {</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;            <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_scale_draw.html#a7a4de0055dc1358e55c3357366a54091">setAlignment</a>( <a class="code" href="class_qwt_scale_draw.html#acd7ceeeac592ef08530788580b461c66a0e16389e135da75f06117d1ee3ef765f">QwtScaleDraw::BottomScale</a> );</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;            <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_scale_draw.html#a15f91bdd71ec87abe618e00cf18aa3f1">move</a>( from, tRect.bottom() + bw );</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;        }</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160; </div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;        <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_scale_draw.html#a002528e391ce07246a5d6b05b4bac9d9">setLength</a>( qMax( to - from, 0 ) );</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;    }</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    <span class="keywordflow">else</span> <span class="comment">// Qt::Vertical</span></div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;    {</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;        from = tRect.top();</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;        to = tRect.bottom();</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160; </div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;        <span class="keywordflow">if</span> ( m_data-&gt;rangeFlags &amp; <a class="code" href="class_qwt_interval.html#a3a4b4e49495108c660fc07a62af7ac54aa7fde04c41d882187bb13f0104da7240">QwtInterval::ExcludeMinimum</a> )</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;        {</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;            <span class="keywordflow">if</span> ( inverted )</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;                from--;</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;                to++;</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;        }</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;        <span class="keywordflow">if</span> ( m_data-&gt;rangeFlags &amp; <a class="code" href="class_qwt_interval.html#a3a4b4e49495108c660fc07a62af7ac54a70e70e65956ae319e507bc38b792c434">QwtInterval::ExcludeMaximum</a> )</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;        {</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;            <span class="keywordflow">if</span> ( inverted )</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;                to++;</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;                from--;</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;        }</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160; </div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;        <span class="keywordflow">if</span> ( m_data-&gt;scalePosition == <a class="code" href="class_qwt_thermo.html#a4d7af32d29d1cc18e23b9143cf7ad498acda60ddfe6178199553941b75ad927a0">QwtThermo::LeadingScale</a> )</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;        {</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;            <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_scale_draw.html#a7a4de0055dc1358e55c3357366a54091">setAlignment</a>( <a class="code" href="class_qwt_scale_draw.html#acd7ceeeac592ef08530788580b461c66a84d42042d94ae7726395ceb578225e1e">QwtScaleDraw::RightScale</a> );</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;            <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_scale_draw.html#a15f91bdd71ec87abe618e00cf18aa3f1">move</a>( tRect.right() + bw, from );</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;        }</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;        {</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;            <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_scale_draw.html#a7a4de0055dc1358e55c3357366a54091">setAlignment</a>( <a class="code" href="class_qwt_scale_draw.html#acd7ceeeac592ef08530788580b461c66af2a8239964381f18dbd08d4a93a7fa23">QwtScaleDraw::LeftScale</a> );</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;            <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_scale_draw.html#a15f91bdd71ec87abe618e00cf18aa3f1">move</a>( tRect.left() - bw, from );</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;        }</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160; </div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;        <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_scale_draw.html#a002528e391ce07246a5d6b05b4bac9d9">setLength</a>( qMax( to - from, 0 ) );</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;    }</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160; </div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;    <span class="keywordflow">if</span> ( update_geometry )</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;    {</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;        updateGeometry();</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;        update();</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    }</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;}</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160; </div>
<div class="line"><a name="l00385"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">  385</a></span>&#160;QRect <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">QwtThermo::pipeRect</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    <span class="keywordtype">int</span> mbd = 0;</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;scalePosition != <a class="code" href="class_qwt_thermo.html#a4d7af32d29d1cc18e23b9143cf7ad498a54c98c1e9500e24a5f92e71a7020acbd">QwtThermo::NoScale</a> )</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;    {</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;        <span class="keywordtype">int</span> d1, d2;</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;        <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_scale_draw.html#a3d8ac98bc2a52dbc5df76e427b47753c">getBorderDistHint</a>( font(), d1, d2 );</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;        mbd = qMax( d1, d2 );</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;    }</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> bw = m_data-&gt;borderWidth;</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> scaleOff = bw + mbd;</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160; </div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;    <span class="keyword">const</span> QRect cr = contentsRect();</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160; </div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;    QRect <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a> = cr;</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;orientation == Qt::Horizontal )</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;    {</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;        <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a>.adjust( scaleOff, 0, -scaleOff, 0 );</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160; </div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;        <span class="keywordflow">if</span> ( m_data-&gt;scalePosition == <a class="code" href="class_qwt_thermo.html#a4d7af32d29d1cc18e23b9143cf7ad498aaf66e72accc5a41142773f586158c067">QwtThermo::TrailingScale</a> )</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;            <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a>.setTop( cr.top() + cr.height() - bw - m_data-&gt;pipeWidth );</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;            <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a>.setTop( bw );</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160; </div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;        <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a>.setHeight( m_data-&gt;pipeWidth );</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;    }</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;    <span class="keywordflow">else</span> <span class="comment">// Qt::Vertical</span></div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;    {</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;        <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a>.adjust( 0, scaleOff, 0, -scaleOff );</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160; </div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;        <span class="keywordflow">if</span> ( m_data-&gt;scalePosition == <a class="code" href="class_qwt_thermo.html#a4d7af32d29d1cc18e23b9143cf7ad498acda60ddfe6178199553941b75ad927a0">QwtThermo::LeadingScale</a> )</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;            <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a>.setLeft( bw );</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;            <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a>.setLeft( cr.left() + cr.width() - bw - m_data-&gt;pipeWidth );</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160; </div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;        <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a>.setWidth( m_data-&gt;pipeWidth );</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;    }</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160; </div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a>;</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;}</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160; </div>
<div class="line"><a name="l00432"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#ae6c0926a7d4d163e08a0f940642b2ea9">  432</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#ae6c0926a7d4d163e08a0f940642b2ea9">QwtThermo::setOrientation</a>( Qt::Orientation orientation )</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;{</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_thermo.html#ae02388e3d666ef3f40dac21cc1a7d2d6">orientation</a> == m_data-&gt;orientation )</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160; </div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;    m_data-&gt;orientation = <a class="code" href="class_qwt_thermo.html#ae02388e3d666ef3f40dac21cc1a7d2d6">orientation</a>;</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160; </div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;    <span class="keywordflow">if</span> ( !testAttribute( Qt::WA_WState_OwnSizePolicy ) )</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;    {</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;        QSizePolicy sp = sizePolicy();</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;        sp.transpose();</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;        setSizePolicy( sp );</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160; </div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;        setAttribute( Qt::WA_WState_OwnSizePolicy, <span class="keyword">false</span> );</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;    }</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160; </div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;    layoutThermo( <span class="keyword">true</span> );</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;}</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160; </div>
<div class="line"><a name="l00455"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#ae02388e3d666ef3f40dac21cc1a7d2d6">  455</a></span>&#160;Qt::Orientation <a class="code" href="class_qwt_thermo.html#ae02388e3d666ef3f40dac21cc1a7d2d6">QwtThermo::orientation</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;orientation;</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;}</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160; </div>
<div class="line"><a name="l00464"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a95cca109a11bba24d8e8a422a3717ab0">  464</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#a95cca109a11bba24d8e8a422a3717ab0">QwtThermo::setOriginMode</a>( <a class="code" href="class_qwt_thermo.html#a932d866dd7782cc56cd7fc3e5abb3183">OriginMode</a> m )</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;{</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;    <span class="keywordflow">if</span> ( m == m_data-&gt;originMode )</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160; </div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;    m_data-&gt;originMode = m;</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;    update();</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;}</div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160; </div>
<div class="line"><a name="l00477"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#ae5088be410bd7611acbcdd914da1f289">  477</a></span>&#160;<a class="code" href="class_qwt_thermo.html#a932d866dd7782cc56cd7fc3e5abb3183">QwtThermo::OriginMode</a> <a class="code" href="class_qwt_thermo.html#ae5088be410bd7611acbcdd914da1f289">QwtThermo::originMode</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;originMode;</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;}</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160; </div>
<div class="line"><a name="l00491"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a00f3853e0fabfe89cbf47d35c15b0aa4">  491</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#a00f3853e0fabfe89cbf47d35c15b0aa4">QwtThermo::setOrigin</a>( <span class="keywordtype">double</span> origin )</div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;{</div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_thermo.html#a52c28bd5710d494de7f25454b0aebd95">origin</a> == m_data-&gt;origin )</div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160; </div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;    m_data-&gt;origin = <a class="code" href="class_qwt_thermo.html#a52c28bd5710d494de7f25454b0aebd95">origin</a>;</div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;    update();</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;}</div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160; </div>
<div class="line"><a name="l00504"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a52c28bd5710d494de7f25454b0aebd95">  504</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_thermo.html#a52c28bd5710d494de7f25454b0aebd95">QwtThermo::origin</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;origin;</div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;}</div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160; </div>
<div class="line"><a name="l00515"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a0306a248194d2f8c08ba90506122d6ca">  515</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#a0306a248194d2f8c08ba90506122d6ca">QwtThermo::setScalePosition</a>( <a class="code" href="class_qwt_thermo.html#a4d7af32d29d1cc18e23b9143cf7ad498">ScalePosition</a> scalePosition )</div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;{</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;scalePosition == <a class="code" href="class_qwt_thermo.html#ae8f4e4ceb3c3c6798d026190e9946e8d">scalePosition</a> )</div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160; </div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;    m_data-&gt;scalePosition = <a class="code" href="class_qwt_thermo.html#ae8f4e4ceb3c3c6798d026190e9946e8d">scalePosition</a>;</div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160; </div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;    <span class="keywordflow">if</span> ( testAttribute( Qt::WA_WState_Polished ) )</div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;        layoutThermo( <span class="keyword">true</span> );</div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;}</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160; </div>
<div class="line"><a name="l00530"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#ae8f4e4ceb3c3c6798d026190e9946e8d">  530</a></span>&#160;<a class="code" href="class_qwt_thermo.html#a4d7af32d29d1cc18e23b9143cf7ad498">QwtThermo::ScalePosition</a> <a class="code" href="class_qwt_thermo.html#ae8f4e4ceb3c3c6798d026190e9946e8d">QwtThermo::scalePosition</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;scalePosition;</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;}</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160; </div>
<div class="line"><a name="l00536"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#ae9ebb0e3ef6522f4515edf3b39decc69">  536</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#ae9ebb0e3ef6522f4515edf3b39decc69">QwtThermo::scaleChange</a>()</div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;{</div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;    layoutThermo( <span class="keyword">true</span> );</div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;}</div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160; </div>
<div class="line"><a name="l00546"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#ac60f96f461fe4ba45a9d91d193aa36b9">  546</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#ac60f96f461fe4ba45a9d91d193aa36b9">QwtThermo::drawLiquid</a>(</div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;    QPainter* painter, <span class="keyword">const</span> QRect&amp; pipeRect )<span class="keyword"> const</span></div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;    painter-&gt;save();</div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;    painter-&gt;setClipRect( <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a>, Qt::IntersectClip );</div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;    painter-&gt;setPen( Qt::NoPen );</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160; </div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a> <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a> = <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_abstract_scale_draw.html#a2582c30e82f8977877ac8044253f1fb8">scaleMap</a>();</div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160; </div>
<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;    QRect liquidRect = <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>( <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a> );</div>
<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160; </div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;colorMap != NULL )</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;    {</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;        <span class="keyword">const</span> <a class="code" href="class_qwt_interval.html">QwtInterval</a> interval = <a class="code" href="class_qwt_abstract_scale.html#a68d4d5a6f44ae4574d5ad8200aaa017f">scaleDiv</a>().<a class="code" href="class_qwt_scale_div.html#a30f6cd443fdbc5d57b3503893c7cbfa6">interval</a>().<a class="code" href="class_qwt_interval.html#a1d6e04b4c2c8e7fb513fbedd2f8984a6">normalized</a>();</div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160; </div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;        <span class="comment">// Because the positions of the ticks are rounded</span></div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;        <span class="comment">// we calculate the colors for the rounded tick values</span></div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160; </div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;        <a class="code" href="class_q_vector.html">QVector&lt; double &gt;</a> values = qwtTickList( <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_abstract_scale.html#a68d4d5a6f44ae4574d5ad8200aaa017f">scaleDiv</a>() );</div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160; </div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;        <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>.<a class="code" href="class_qwt_scale_map.html#a283100be40b08db7df078b8a0ee1d19c">isInverting</a>() )</div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;            std::sort( values.begin(), values.end(), std::greater&lt; double &gt;() );</div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;            std::sort( values.begin(), values.end(), std::less&lt; double &gt;() );</div>
<div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160; </div>
<div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;        <span class="keywordtype">int</span> from;</div>
<div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;        <span class="keywordflow">if</span> ( !values.isEmpty() )</div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;        {</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;            from = qRound( <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>.<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( values[0] ) );</div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;            qwtDrawLine( painter, from,</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;                m_data-&gt;colorMap-&gt;color( interval, values[0] ),</div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;                <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a>, liquidRect, m_data-&gt;orientation );</div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;        }</div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160; </div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;        <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 1; i &lt; values.size(); i++ )</div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;        {</div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">int</span> to = qRound( <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>.<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( values[i] ) );</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160; </div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;            <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> pos = from + 1; pos &lt; to; pos++ )</div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;            {</div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;                <span class="keyword">const</span> <span class="keywordtype">double</span> v = <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>.<a class="code" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform</a>( pos );</div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160; </div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;                qwtDrawLine( painter, pos,</div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;                    m_data-&gt;colorMap-&gt;color( interval, v ),</div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;                    <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a>, liquidRect, m_data-&gt;orientation );</div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;            }</div>
<div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160; </div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;            qwtDrawLine( painter, to,</div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;                m_data-&gt;colorMap-&gt;color( interval, values[i] ),</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;                <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a>, liquidRect, m_data-&gt;orientation );</div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160; </div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;            from = to;</div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;        }</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;    }</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;    {</div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;        <span class="keywordflow">if</span> ( !liquidRect.isEmpty() &amp;&amp; m_data-&gt;alarmEnabled )</div>
<div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;        {</div>
<div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;            <span class="keyword">const</span> QRect r = <a class="code" href="class_qwt_thermo.html#ae979dbcb32630eaed69e0ff54a46c4fa">alarmRect</a>( liquidRect );</div>
<div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;            <span class="keywordflow">if</span> ( !r.isEmpty() )</div>
<div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;            {</div>
<div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;                painter-&gt;fillRect( r, palette().brush( QPalette::Highlight ) );</div>
<div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;                liquidRect = QRegion( liquidRect ).subtracted( r ).boundingRect();</div>
<div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;            }</div>
<div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;        }</div>
<div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160; </div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;        painter-&gt;fillRect( liquidRect, palette().brush( QPalette::ButtonText ) );</div>
<div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;    }</div>
<div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160; </div>
<div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;    painter-&gt;restore();</div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;}</div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160; </div>
<div class="line"><a name="l00629"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a5d772862c760019a7797f45aa6b0690f">  629</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#a5d772862c760019a7797f45aa6b0690f">QwtThermo::setSpacing</a>( <span class="keywordtype">int</span> spacing )</div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;{</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_thermo.html#a1d0c15c3d94e7e063323a9e4d91c58e8">spacing</a> &lt;= 0 )</div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;        <a class="code" href="class_qwt_thermo.html#a1d0c15c3d94e7e063323a9e4d91c58e8">spacing</a> = 0;</div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160; </div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_thermo.html#a1d0c15c3d94e7e063323a9e4d91c58e8">spacing</a> != m_data-&gt;spacing  )</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;    {</div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;        m_data-&gt;spacing = <a class="code" href="class_qwt_thermo.html#a1d0c15c3d94e7e063323a9e4d91c58e8">spacing</a>;</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;        layoutThermo( <span class="keyword">true</span> );</div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;    }</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;}</div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160; </div>
<div class="line"><a name="l00645"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a1d0c15c3d94e7e063323a9e4d91c58e8">  645</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_qwt_thermo.html#a1d0c15c3d94e7e063323a9e4d91c58e8">QwtThermo::spacing</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;spacing;</div>
<div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;}</div>
<div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160; </div>
<div class="line"><a name="l00655"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a7b58050d57df6bbe2c1e067495f8a3dc">  655</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#a7b58050d57df6bbe2c1e067495f8a3dc">QwtThermo::setBorderWidth</a>( <span class="keywordtype">int</span> width )</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;{</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;    <span class="keywordflow">if</span> ( width &lt;= 0 )</div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;        width = 0;</div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160; </div>
<div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;    <span class="keywordflow">if</span> ( width != m_data-&gt;borderWidth  )</div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;    {</div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;        m_data-&gt;borderWidth = width;</div>
<div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;        layoutThermo( <span class="keyword">true</span> );</div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;    }</div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;}</div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160; </div>
<div class="line"><a name="l00671"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#ad30227f6efef0b8fc0c13a9b2975b6e8">  671</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_qwt_thermo.html#ad30227f6efef0b8fc0c13a9b2975b6e8">QwtThermo::borderWidth</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;borderWidth;</div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;}</div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160; </div>
<div class="line"><a name="l00683"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#ad2ac0e2d496fd3d28f83f61728b83337">  683</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#ad2ac0e2d496fd3d28f83f61728b83337">QwtThermo::setColorMap</a>( <a class="code" href="class_qwt_color_map.html">QwtColorMap</a>* colorMap )</div>
<div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;{</div>
<div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_thermo.html#a8d9285fdda3f6f26fc0d9aa35b5f021e">colorMap</a> != m_data-&gt;colorMap )</div>
<div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;    {</div>
<div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;        <span class="keyword">delete</span> m_data-&gt;colorMap;</div>
<div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;        m_data-&gt;colorMap = <a class="code" href="class_qwt_thermo.html#a8d9285fdda3f6f26fc0d9aa35b5f021e">colorMap</a>;</div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;    }</div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;}</div>
<div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160; </div>
<div class="line"><a name="l00697"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a8d9285fdda3f6f26fc0d9aa35b5f021e">  697</a></span>&#160;<a class="code" href="class_qwt_color_map.html">QwtColorMap</a>* <a class="code" href="class_qwt_thermo.html#a8d9285fdda3f6f26fc0d9aa35b5f021e">QwtThermo::colorMap</a>()</div>
<div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;{</div>
<div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;colorMap;</div>
<div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160;}</div>
<div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160; </div>
<div class="line"><a name="l00707"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a6dd63f0795af9c741426cf0ebbfeea2c">  707</a></span>&#160;<span class="keyword">const</span> <a class="code" href="class_qwt_color_map.html">QwtColorMap</a>* <a class="code" href="class_qwt_thermo.html#a8d9285fdda3f6f26fc0d9aa35b5f021e">QwtThermo::colorMap</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00708"></a><span class="lineno">  708</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00709"></a><span class="lineno">  709</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;colorMap;</div>
<div class="line"><a name="l00710"></a><span class="lineno">  710</span>&#160;}</div>
<div class="line"><a name="l00711"></a><span class="lineno">  711</span>&#160; </div>
<div class="line"><a name="l00720"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#ac8a1eca462e5f260fefd2b95a2bc00b9">  720</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#ac8a1eca462e5f260fefd2b95a2bc00b9">QwtThermo::setFillBrush</a>( <span class="keyword">const</span> QBrush&amp; brush )</div>
<div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;{</div>
<div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160;    QPalette pal = palette();</div>
<div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160;    pal.setBrush( QPalette::ButtonText, brush );</div>
<div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160;    setPalette( pal );</div>
<div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160;}</div>
<div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160; </div>
<div class="line"><a name="l00731"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a6c67fa1b4a79688460508848ee4e106e">  731</a></span>&#160;QBrush <a class="code" href="class_qwt_thermo.html#a6c67fa1b4a79688460508848ee4e106e">QwtThermo::fillBrush</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;    <span class="keywordflow">return</span> palette().brush( QPalette::ButtonText );</div>
<div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;}</div>
<div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160; </div>
<div class="line"><a name="l00747"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a3d2e1c17d3630cd9dda66bcf913a7a60">  747</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#a3d2e1c17d3630cd9dda66bcf913a7a60">QwtThermo::setAlarmBrush</a>( <span class="keyword">const</span> QBrush&amp; brush )</div>
<div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160;{</div>
<div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160;    QPalette pal = palette();</div>
<div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160;    pal.setBrush( QPalette::Highlight, brush );</div>
<div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;    setPalette( pal );</div>
<div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160;}</div>
<div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160; </div>
<div class="line"><a name="l00761"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#aa269fa046eaf30491e7c624a1fa0e096">  761</a></span>&#160;QBrush <a class="code" href="class_qwt_thermo.html#aa269fa046eaf30491e7c624a1fa0e096">QwtThermo::alarmBrush</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;    <span class="keywordflow">return</span> palette().brush( QPalette::Highlight );</div>
<div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;}</div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160; </div>
<div class="line"><a name="l00775"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a14657d853d79682452f329d9b37461a3">  775</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#a14657d853d79682452f329d9b37461a3">QwtThermo::setAlarmLevel</a>( <span class="keywordtype">double</span> level )</div>
<div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;{</div>
<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;    m_data-&gt;alarmLevel = level;</div>
<div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;    m_data-&gt;alarmEnabled = 1;</div>
<div class="line"><a name="l00779"></a><span class="lineno">  779</span>&#160;    update();</div>
<div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160;}</div>
<div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160; </div>
<div class="line"><a name="l00789"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#aee9cf6c14feecc68fd866b0a5c1ab06b">  789</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_thermo.html#aee9cf6c14feecc68fd866b0a5c1ab06b">QwtThermo::alarmLevel</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;alarmLevel;</div>
<div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160;}</div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160; </div>
<div class="line"><a name="l00800"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a3268b4ae2737194bf2dddfcbfc0d5808">  800</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#a3268b4ae2737194bf2dddfcbfc0d5808">QwtThermo::setPipeWidth</a>( <span class="keywordtype">int</span> width )</div>
<div class="line"><a name="l00801"></a><span class="lineno">  801</span>&#160;{</div>
<div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;    <span class="keywordflow">if</span> ( width &gt; 0 )</div>
<div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160;    {</div>
<div class="line"><a name="l00804"></a><span class="lineno">  804</span>&#160;        m_data-&gt;pipeWidth = width;</div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;        layoutThermo( <span class="keyword">true</span> );</div>
<div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160;    }</div>
<div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160;}</div>
<div class="line"><a name="l00808"></a><span class="lineno">  808</span>&#160; </div>
<div class="line"><a name="l00813"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a4f3901a508a3d299a3a17b1a2c4753fc">  813</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_qwt_thermo.html#a4f3901a508a3d299a3a17b1a2c4753fc">QwtThermo::pipeWidth</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00814"></a><span class="lineno">  814</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00815"></a><span class="lineno">  815</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;pipeWidth;</div>
<div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;}</div>
<div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160; </div>
<div class="line"><a name="l00825"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#a0ebd05c24f051ac7d6b98f9e8a0c3035">  825</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_thermo.html#a0ebd05c24f051ac7d6b98f9e8a0c3035">QwtThermo::setAlarmEnabled</a>( <span class="keywordtype">bool</span> on )</div>
<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;{</div>
<div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;    m_data-&gt;alarmEnabled = on;</div>
<div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160;    update();</div>
<div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160;}</div>
<div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160; </div>
<div class="line"><a name="l00837"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#ad64e8d51c78a359494c48e02d9ce5caa">  837</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_qwt_thermo.html#ad64e8d51c78a359494c48e02d9ce5caa">QwtThermo::alarmEnabled</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00839"></a><span class="lineno">  839</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;alarmEnabled;</div>
<div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160;}</div>
<div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160; </div>
<div class="line"><a name="l00846"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#af0f87a1fccca9957fb87b4b9f2941f8b">  846</a></span>&#160;QSize <a class="code" href="class_qwt_thermo.html#af0f87a1fccca9957fb87b4b9f2941f8b">QwtThermo::sizeHint</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00847"></a><span class="lineno">  847</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qwt_thermo.html#ac54991c9701c7550590cd1eb3b50f906">minimumSizeHint</a>();</div>
<div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;}</div>
<div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160; </div>
<div class="line"><a name="l00856"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#ac54991c9701c7550590cd1eb3b50f906">  856</a></span>&#160;QSize <a class="code" href="class_qwt_thermo.html#ac54991c9701c7550590cd1eb3b50f906">QwtThermo::minimumSizeHint</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00857"></a><span class="lineno">  857</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160;    <span class="keywordtype">int</span> w = 0, h = 0;</div>
<div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160; </div>
<div class="line"><a name="l00860"></a><span class="lineno">  860</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;scalePosition != <a class="code" href="class_qwt_thermo.html#a4d7af32d29d1cc18e23b9143cf7ad498a54c98c1e9500e24a5f92e71a7020acbd">NoScale</a> )</div>
<div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160;    {</div>
<div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">int</span> sdExtent = qwtCeil( <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;extent( font() ) );</div>
<div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">int</span> sdLength = <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_scale_draw.html#a443d2574ddeedc7bfeb507ee67ec47e2">minLength</a>( font() );</div>
<div class="line"><a name="l00864"></a><span class="lineno">  864</span>&#160; </div>
<div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160;        w = sdLength;</div>
<div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160;        h = m_data-&gt;pipeWidth + sdExtent + m_data-&gt;spacing;</div>
<div class="line"><a name="l00867"></a><span class="lineno">  867</span>&#160; </div>
<div class="line"><a name="l00868"></a><span class="lineno">  868</span>&#160;    }</div>
<div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160;    <span class="keywordflow">else</span> <span class="comment">// no scale</span></div>
<div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;    {</div>
<div class="line"><a name="l00871"></a><span class="lineno">  871</span>&#160;        w = 200;</div>
<div class="line"><a name="l00872"></a><span class="lineno">  872</span>&#160;        h = m_data-&gt;pipeWidth;</div>
<div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160;    }</div>
<div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160; </div>
<div class="line"><a name="l00875"></a><span class="lineno">  875</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;orientation == Qt::Vertical )</div>
<div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;        qSwap( w, h );</div>
<div class="line"><a name="l00877"></a><span class="lineno">  877</span>&#160; </div>
<div class="line"><a name="l00878"></a><span class="lineno">  878</span>&#160;    w += 2 * m_data-&gt;borderWidth;</div>
<div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160;    h += 2 * m_data-&gt;borderWidth;</div>
<div class="line"><a name="l00880"></a><span class="lineno">  880</span>&#160; </div>
<div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160;    <span class="comment">// finally add the margins</span></div>
<div class="line"><a name="l00882"></a><span class="lineno">  882</span>&#160;    <span class="keyword">const</span> QMargins m = contentsMargins();</div>
<div class="line"><a name="l00883"></a><span class="lineno">  883</span>&#160;    w += m.left() + m.right();</div>
<div class="line"><a name="l00884"></a><span class="lineno">  884</span>&#160;    h += m.top() + m.bottom();</div>
<div class="line"><a name="l00885"></a><span class="lineno">  885</span>&#160; </div>
<div class="line"><a name="l00886"></a><span class="lineno">  886</span>&#160;    <span class="keywordflow">return</span> QSize( w, h );</div>
<div class="line"><a name="l00887"></a><span class="lineno">  887</span>&#160;}</div>
<div class="line"><a name="l00888"></a><span class="lineno">  888</span>&#160; </div>
<div class="line"><a name="l00897"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">  897</a></span>&#160;QRect <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">QwtThermo::fillRect</a>( <span class="keyword">const</span> QRect&amp; pipeRect )<span class="keyword"> const</span></div>
<div class="line"><a name="l00898"></a><span class="lineno">  898</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00899"></a><span class="lineno">  899</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_qwt_thermo.html#a52c28bd5710d494de7f25454b0aebd95">origin</a>;</div>
<div class="line"><a name="l00900"></a><span class="lineno">  900</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;originMode == <a class="code" href="class_qwt_thermo.html#a932d866dd7782cc56cd7fc3e5abb3183ae45b6edabbd2a63aa1551b7ed9b10f76">OriginMinimum</a> )</div>
<div class="line"><a name="l00901"></a><span class="lineno">  901</span>&#160;    {</div>
<div class="line"><a name="l00902"></a><span class="lineno">  902</span>&#160;        <a class="code" href="class_qwt_thermo.html#a52c28bd5710d494de7f25454b0aebd95">origin</a> = qMin( <a class="code" href="class_qwt_abstract_scale.html#a41b46b9bf8b6d7986cc64c766f3b667c">lowerBound</a>(), <a class="code" href="class_qwt_abstract_scale.html#ae5696dae4e4cc4332a84453a0ce18cc8">upperBound</a>() );</div>
<div class="line"><a name="l00903"></a><span class="lineno">  903</span>&#160;    }</div>
<div class="line"><a name="l00904"></a><span class="lineno">  904</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( m_data-&gt;originMode == <a class="code" href="class_qwt_thermo.html#a932d866dd7782cc56cd7fc3e5abb3183aa67de5780557c0c2ca93c45059ae932a">OriginMaximum</a> )</div>
<div class="line"><a name="l00905"></a><span class="lineno">  905</span>&#160;    {</div>
<div class="line"><a name="l00906"></a><span class="lineno">  906</span>&#160;        <a class="code" href="class_qwt_thermo.html#a52c28bd5710d494de7f25454b0aebd95">origin</a> = qMax( <a class="code" href="class_qwt_abstract_scale.html#a41b46b9bf8b6d7986cc64c766f3b667c">lowerBound</a>(), <a class="code" href="class_qwt_abstract_scale.html#ae5696dae4e4cc4332a84453a0ce18cc8">upperBound</a>() );</div>
<div class="line"><a name="l00907"></a><span class="lineno">  907</span>&#160;    }</div>
<div class="line"><a name="l00908"></a><span class="lineno">  908</span>&#160;    <span class="keywordflow">else</span> <span class="comment">// OriginCustom</span></div>
<div class="line"><a name="l00909"></a><span class="lineno">  909</span>&#160;    {</div>
<div class="line"><a name="l00910"></a><span class="lineno">  910</span>&#160;        <a class="code" href="class_qwt_thermo.html#a52c28bd5710d494de7f25454b0aebd95">origin</a> = m_data-&gt;origin;</div>
<div class="line"><a name="l00911"></a><span class="lineno">  911</span>&#160;    }</div>
<div class="line"><a name="l00912"></a><span class="lineno">  912</span>&#160; </div>
<div class="line"><a name="l00913"></a><span class="lineno">  913</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a> <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a> = <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_abstract_scale_draw.html#a2582c30e82f8977877ac8044253f1fb8">scaleMap</a>();</div>
<div class="line"><a name="l00914"></a><span class="lineno">  914</span>&#160; </div>
<div class="line"><a name="l00915"></a><span class="lineno">  915</span>&#160;    <span class="keywordtype">int</span> from = qRound( <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>.<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( m_data-&gt;value ) );</div>
<div class="line"><a name="l00916"></a><span class="lineno">  916</span>&#160;    <span class="keywordtype">int</span> to = qRound( <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>.<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( <a class="code" href="class_qwt_thermo.html#a52c28bd5710d494de7f25454b0aebd95">origin</a> ) );</div>
<div class="line"><a name="l00917"></a><span class="lineno">  917</span>&#160; </div>
<div class="line"><a name="l00918"></a><span class="lineno">  918</span>&#160;    <span class="keywordflow">if</span> ( to &lt; from )</div>
<div class="line"><a name="l00919"></a><span class="lineno">  919</span>&#160;        qSwap( from, to );</div>
<div class="line"><a name="l00920"></a><span class="lineno">  920</span>&#160; </div>
<div class="line"><a name="l00921"></a><span class="lineno">  921</span>&#160;    QRect <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a> = <a class="code" href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">pipeRect</a>;</div>
<div class="line"><a name="l00922"></a><span class="lineno">  922</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;orientation == Qt::Horizontal )</div>
<div class="line"><a name="l00923"></a><span class="lineno">  923</span>&#160;    {</div>
<div class="line"><a name="l00924"></a><span class="lineno">  924</span>&#160;        <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>.setLeft( from );</div>
<div class="line"><a name="l00925"></a><span class="lineno">  925</span>&#160;        <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>.setRight( to );</div>
<div class="line"><a name="l00926"></a><span class="lineno">  926</span>&#160;    }</div>
<div class="line"><a name="l00927"></a><span class="lineno">  927</span>&#160;    <span class="keywordflow">else</span> <span class="comment">// Qt::Vertical</span></div>
<div class="line"><a name="l00928"></a><span class="lineno">  928</span>&#160;    {</div>
<div class="line"><a name="l00929"></a><span class="lineno">  929</span>&#160;        <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>.setTop( from );</div>
<div class="line"><a name="l00930"></a><span class="lineno">  930</span>&#160;        <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>.setBottom( to );</div>
<div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;    }</div>
<div class="line"><a name="l00932"></a><span class="lineno">  932</span>&#160; </div>
<div class="line"><a name="l00933"></a><span class="lineno">  933</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>.normalized();</div>
<div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160;}</div>
<div class="line"><a name="l00935"></a><span class="lineno">  935</span>&#160; </div>
<div class="line"><a name="l00944"></a><span class="lineno"><a class="line" href="class_qwt_thermo.html#ae979dbcb32630eaed69e0ff54a46c4fa">  944</a></span>&#160;QRect <a class="code" href="class_qwt_thermo.html#ae979dbcb32630eaed69e0ff54a46c4fa">QwtThermo::alarmRect</a>( <span class="keyword">const</span> QRect&amp; fillRect )<span class="keyword"> const</span></div>
<div class="line"><a name="l00945"></a><span class="lineno">  945</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00946"></a><span class="lineno">  946</span>&#160;    QRect <a class="code" href="class_qwt_thermo.html#ae979dbcb32630eaed69e0ff54a46c4fa">alarmRect</a>( 0, 0, -1, -1); <span class="comment">// something invalid</span></div>
<div class="line"><a name="l00947"></a><span class="lineno">  947</span>&#160; </div>
<div class="line"><a name="l00948"></a><span class="lineno">  948</span>&#160;    <span class="keywordflow">if</span> ( !m_data-&gt;alarmEnabled )</div>
<div class="line"><a name="l00949"></a><span class="lineno">  949</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="class_qwt_thermo.html#ae979dbcb32630eaed69e0ff54a46c4fa">alarmRect</a>;</div>
<div class="line"><a name="l00950"></a><span class="lineno">  950</span>&#160; </div>
<div class="line"><a name="l00951"></a><span class="lineno">  951</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">bool</span> inverted = ( <a class="code" href="class_qwt_abstract_scale.html#ae5696dae4e4cc4332a84453a0ce18cc8">upperBound</a>() &lt; <a class="code" href="class_qwt_abstract_scale.html#a41b46b9bf8b6d7986cc64c766f3b667c">lowerBound</a>() );</div>
<div class="line"><a name="l00952"></a><span class="lineno">  952</span>&#160; </div>
<div class="line"><a name="l00953"></a><span class="lineno">  953</span>&#160;    <span class="keywordtype">bool</span> increasing;</div>
<div class="line"><a name="l00954"></a><span class="lineno">  954</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;originMode == <a class="code" href="class_qwt_thermo.html#a932d866dd7782cc56cd7fc3e5abb3183ad086bebe6a48967d8d078f0c27ee993f">OriginCustom</a> )</div>
<div class="line"><a name="l00955"></a><span class="lineno">  955</span>&#160;    {</div>
<div class="line"><a name="l00956"></a><span class="lineno">  956</span>&#160;        increasing = m_data-&gt;value &gt; m_data-&gt;origin;</div>
<div class="line"><a name="l00957"></a><span class="lineno">  957</span>&#160;    }</div>
<div class="line"><a name="l00958"></a><span class="lineno">  958</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00959"></a><span class="lineno">  959</span>&#160;    {</div>
<div class="line"><a name="l00960"></a><span class="lineno">  960</span>&#160;        increasing = m_data-&gt;originMode == <a class="code" href="class_qwt_thermo.html#a932d866dd7782cc56cd7fc3e5abb3183ae45b6edabbd2a63aa1551b7ed9b10f76">OriginMinimum</a>;</div>
<div class="line"><a name="l00961"></a><span class="lineno">  961</span>&#160;    }</div>
<div class="line"><a name="l00962"></a><span class="lineno">  962</span>&#160; </div>
<div class="line"><a name="l00963"></a><span class="lineno">  963</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a> map = <a class="code" href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_abstract_scale_draw.html#a2582c30e82f8977877ac8044253f1fb8">scaleMap</a>();</div>
<div class="line"><a name="l00964"></a><span class="lineno">  964</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> alarmPos = qRound( map.<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( m_data-&gt;alarmLevel ) );</div>
<div class="line"><a name="l00965"></a><span class="lineno">  965</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> valuePos = qRound( map.<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( m_data-&gt;value ) );</div>
<div class="line"><a name="l00966"></a><span class="lineno">  966</span>&#160; </div>
<div class="line"><a name="l00967"></a><span class="lineno">  967</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;orientation == Qt::Horizontal )</div>
<div class="line"><a name="l00968"></a><span class="lineno">  968</span>&#160;    {</div>
<div class="line"><a name="l00969"></a><span class="lineno">  969</span>&#160;        <span class="keywordtype">int</span> v1, v2;</div>
<div class="line"><a name="l00970"></a><span class="lineno">  970</span>&#160;        <span class="keywordflow">if</span> ( inverted )</div>
<div class="line"><a name="l00971"></a><span class="lineno">  971</span>&#160;        {</div>
<div class="line"><a name="l00972"></a><span class="lineno">  972</span>&#160;            v1 = <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>.left();</div>
<div class="line"><a name="l00973"></a><span class="lineno">  973</span>&#160; </div>
<div class="line"><a name="l00974"></a><span class="lineno">  974</span>&#160;            v2 = alarmPos - 1;</div>
<div class="line"><a name="l00975"></a><span class="lineno">  975</span>&#160;            v2 = qMin( v2, increasing ? <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>.right() : valuePos );</div>
<div class="line"><a name="l00976"></a><span class="lineno">  976</span>&#160;        }</div>
<div class="line"><a name="l00977"></a><span class="lineno">  977</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00978"></a><span class="lineno">  978</span>&#160;        {</div>
<div class="line"><a name="l00979"></a><span class="lineno">  979</span>&#160;            v1 = alarmPos + 1;</div>
<div class="line"><a name="l00980"></a><span class="lineno">  980</span>&#160;            v1 = qMax( v1, increasing ? <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>.left() : valuePos );</div>
<div class="line"><a name="l00981"></a><span class="lineno">  981</span>&#160; </div>
<div class="line"><a name="l00982"></a><span class="lineno">  982</span>&#160;            v2 = <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>.right();</div>
<div class="line"><a name="l00983"></a><span class="lineno">  983</span>&#160; </div>
<div class="line"><a name="l00984"></a><span class="lineno">  984</span>&#160;        }</div>
<div class="line"><a name="l00985"></a><span class="lineno">  985</span>&#160;        <a class="code" href="class_qwt_thermo.html#ae979dbcb32630eaed69e0ff54a46c4fa">alarmRect</a>.setRect( v1, <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>.top(), v2 - v1 + 1, <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>.height() );</div>
<div class="line"><a name="l00986"></a><span class="lineno">  986</span>&#160;    }</div>
<div class="line"><a name="l00987"></a><span class="lineno">  987</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00988"></a><span class="lineno">  988</span>&#160;    {</div>
<div class="line"><a name="l00989"></a><span class="lineno">  989</span>&#160;        <span class="keywordtype">int</span> v1, v2;</div>
<div class="line"><a name="l00990"></a><span class="lineno">  990</span>&#160;        <span class="keywordflow">if</span> ( inverted )</div>
<div class="line"><a name="l00991"></a><span class="lineno">  991</span>&#160;        {</div>
<div class="line"><a name="l00992"></a><span class="lineno">  992</span>&#160;            v1 = alarmPos + 1;</div>
<div class="line"><a name="l00993"></a><span class="lineno">  993</span>&#160;            v1 = qMax( v1, increasing ? <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>.top() : valuePos );</div>
<div class="line"><a name="l00994"></a><span class="lineno">  994</span>&#160; </div>
<div class="line"><a name="l00995"></a><span class="lineno">  995</span>&#160;            v2 = <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>.bottom();</div>
<div class="line"><a name="l00996"></a><span class="lineno">  996</span>&#160;        }</div>
<div class="line"><a name="l00997"></a><span class="lineno">  997</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00998"></a><span class="lineno">  998</span>&#160;        {</div>
<div class="line"><a name="l00999"></a><span class="lineno">  999</span>&#160;            v1 = <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>.top();</div>
<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>&#160; </div>
<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>&#160;            v2 = alarmPos - 1;</div>
<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>&#160;            v2 = qMin( v2, increasing ? <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>.bottom() : valuePos );</div>
<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>&#160;        }</div>
<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>&#160;        <a class="code" href="class_qwt_thermo.html#ae979dbcb32630eaed69e0ff54a46c4fa">alarmRect</a>.setRect( <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>.left(), v1, <a class="code" href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">fillRect</a>.width(), v2 - v1 + 1 );</div>
<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>&#160;    }</div>
<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>&#160; </div>
<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qwt_thermo.html#ae979dbcb32630eaed69e0ff54a46c4fa">alarmRect</a>;</div>
<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>&#160;}</div>
<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>&#160; </div>
<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>&#160;<span class="preprocessor">#if QWT_MOC_INCLUDE</span></div>
<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>&#160;<span class="preprocessor">#include &quot;moc_qwt_thermo.cpp&quot;</span></div>
<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclass_q_list_html"><div class="ttname"><a href="class_q_list.html">QList&lt; double &gt;</a></div></div>
<div class="ttc" id="aclass_q_vector_html"><div class="ttname"><a href="class_q_vector.html">QVector&lt; double &gt;</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_a2582c30e82f8977877ac8044253f1fb8"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#a2582c30e82f8977877ac8044253f1fb8">QwtAbstractScaleDraw::scaleMap</a></div><div class="ttdeci">const QwtScaleMap &amp; scaleMap() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00121">qwt_abstract_scale_draw.cpp:121</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_ac4442d7480db1288971e7eac15142467"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#ac4442d7480db1288971e7eac15142467">QwtAbstractScaleDraw::draw</a></div><div class="ttdeci">virtual void draw(QPainter *, const QPalette &amp;) const</div><div class="ttdoc">Draw the scale.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00169">qwt_abstract_scale_draw.cpp:169</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html"><div class="ttname"><a href="class_qwt_abstract_scale.html">QwtAbstractScale</a></div><div class="ttdoc">An abstract base class for widgets having a scale.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8h_source.html#l00036">qwt_abstract_scale.h:37</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a116c7877f4d9fc3620ffa713b5bbdb96"><div class="ttname"><a href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">QwtAbstractScale::scaleMap</a></div><div class="ttdeci">const QwtScaleMap &amp; scaleMap() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00357">qwt_abstract_scale.cpp:357</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a41b46b9bf8b6d7986cc64c766f3b667c"><div class="ttname"><a href="class_qwt_abstract_scale.html#a41b46b9bf8b6d7986cc64c766f3b667c">QwtAbstractScale::lowerBound</a></div><div class="ttdeci">double lowerBound() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00088">qwt_abstract_scale.cpp:88</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a473e84e72bd52afac58c04d004b5c06a"><div class="ttname"><a href="class_qwt_abstract_scale.html#a473e84e72bd52afac58c04d004b5c06a">QwtAbstractScale::abstractScaleDraw</a></div><div class="ttdeci">const QwtAbstractScaleDraw * abstractScaleDraw() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00302">qwt_abstract_scale.cpp:302</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a68d4d5a6f44ae4574d5ad8200aaa017f"><div class="ttname"><a href="class_qwt_abstract_scale.html#a68d4d5a6f44ae4574d5ad8200aaa017f">QwtAbstractScale::scaleDiv</a></div><div class="ttdeci">const QwtScaleDiv &amp; scaleDiv() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00349">qwt_abstract_scale.cpp:349</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a950c5bf521dc704b78f76c7951346288"><div class="ttname"><a href="class_qwt_abstract_scale.html#a950c5bf521dc704b78f76c7951346288">QwtAbstractScale::setAbstractScaleDraw</a></div><div class="ttdeci">void setAbstractScaleDraw(QwtAbstractScaleDraw *)</div><div class="ttdoc">Set a scale draw.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00277">qwt_abstract_scale.cpp:277</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_ae5696dae4e4cc4332a84453a0ce18cc8"><div class="ttname"><a href="class_qwt_abstract_scale.html#ae5696dae4e4cc4332a84453a0ce18cc8">QwtAbstractScale::upperBound</a></div><div class="ttdeci">double upperBound() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00111">qwt_abstract_scale.cpp:111</a></div></div>
<div class="ttc" id="aclass_qwt_color_map_html"><div class="ttname"><a href="class_qwt_color_map.html">QwtColorMap</a></div><div class="ttdoc">QwtColorMap is used to map values into colors.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__color__map_8h_source.html#l00037">qwt_color_map.h:38</a></div></div>
<div class="ttc" id="aclass_qwt_interval_html"><div class="ttname"><a href="class_qwt_interval.html">QwtInterval</a></div><div class="ttdoc">A class representing an interval.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__interval_8h_source.html#l00022">qwt_interval.h:23</a></div></div>
<div class="ttc" id="aclass_qwt_interval_html_a0df143a36d76a677976d82987cab8a06"><div class="ttname"><a href="class_qwt_interval.html#a0df143a36d76a677976d82987cab8a06">QwtInterval::minValue</a></div><div class="ttdeci">double minValue() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__interval_8h_source.html#l00192">qwt_interval.h:192</a></div></div>
<div class="ttc" id="aclass_qwt_interval_html_a1d6e04b4c2c8e7fb513fbedd2f8984a6"><div class="ttname"><a href="class_qwt_interval.html#a1d6e04b4c2c8e7fb513fbedd2f8984a6">QwtInterval::normalized</a></div><div class="ttdeci">QwtInterval normalized() const</div><div class="ttdoc">Normalize the limits of the interval.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__interval_8cpp_source.html#l00029">qwt_interval.cpp:29</a></div></div>
<div class="ttc" id="aclass_qwt_interval_html_a3a4b4e49495108c660fc07a62af7ac54a70e70e65956ae319e507bc38b792c434"><div class="ttname"><a href="class_qwt_interval.html#a3a4b4e49495108c660fc07a62af7ac54a70e70e65956ae319e507bc38b792c434">QwtInterval::ExcludeMaximum</a></div><div class="ttdeci">@ ExcludeMaximum</div><div class="ttdoc">Max value is not included in the interval.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__interval_8h_source.html#l00038">qwt_interval.h:38</a></div></div>
<div class="ttc" id="aclass_qwt_interval_html_a3a4b4e49495108c660fc07a62af7ac54aa7fde04c41d882187bb13f0104da7240"><div class="ttname"><a href="class_qwt_interval.html#a3a4b4e49495108c660fc07a62af7ac54aa7fde04c41d882187bb13f0104da7240">QwtInterval::ExcludeMinimum</a></div><div class="ttdeci">@ ExcludeMinimum</div><div class="ttdoc">Min value is not included in the interval.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__interval_8h_source.html#l00035">qwt_interval.h:35</a></div></div>
<div class="ttc" id="aclass_qwt_interval_html_a3a4b4e49495108c660fc07a62af7ac54ad8a550b5eb1062cd84bcba22c60e5e60"><div class="ttname"><a href="class_qwt_interval.html#a3a4b4e49495108c660fc07a62af7ac54ad8a550b5eb1062cd84bcba22c60e5e60">QwtInterval::IncludeBorders</a></div><div class="ttdeci">@ IncludeBorders</div><div class="ttdoc">Min/Max values are inside the interval.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__interval_8h_source.html#l00032">qwt_interval.h:32</a></div></div>
<div class="ttc" id="aclass_qwt_interval_html_a44820fa5d6e6cefa59dc31ea0d522d61"><div class="ttname"><a href="class_qwt_interval.html#a44820fa5d6e6cefa59dc31ea0d522d61">QwtInterval::maxValue</a></div><div class="ttdeci">double maxValue() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__interval_8h_source.html#l00198">qwt_interval.h:198</a></div></div>
<div class="ttc" id="aclass_qwt_interval_html_aed8121e9a5992e790926d85cd20220a3"><div class="ttname"><a href="class_qwt_interval.html#aed8121e9a5992e790926d85cd20220a3">QwtInterval::BorderFlags</a></div><div class="ttdeci">QFlags&lt; BorderFlag &gt; BorderFlags</div><div class="ttdoc">Border flags.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__interval_8h_source.html#l00045">qwt_interval.h:45</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html"><div class="ttname"><a href="class_qwt_scale_div.html">QwtScaleDiv</a></div><div class="ttdoc">A class representing a scale division.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8h_source.html#l00033">qwt_scale_div.h:34</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html_a30f6cd443fdbc5d57b3503893c7cbfa6"><div class="ttname"><a href="class_qwt_scale_div.html#a30f6cd443fdbc5d57b3503893c7cbfa6">QwtScaleDiv::interval</a></div><div class="ttdeci">QwtInterval interval() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8cpp_source.html#l00111">qwt_scale_div.cpp:111</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html_a838db100c7f0f8454bf8559e89cb4d41"><div class="ttname"><a href="class_qwt_scale_div.html#a838db100c7f0f8454bf8559e89cb4d41">QwtScaleDiv::ticks</a></div><div class="ttdeci">QList&lt; double &gt; ticks(int tickType) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8cpp_source.html#l00309">qwt_scale_div.cpp:309</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html_af21aedaa886dd5e067cf63505838736ca6af9f3b95636a6fdebb4824c6db0ab9e"><div class="ttname"><a href="class_qwt_scale_div.html#af21aedaa886dd5e067cf63505838736ca6af9f3b95636a6fdebb4824c6db0ab9e">QwtScaleDiv::MinorTick</a></div><div class="ttdeci">@ MinorTick</div><div class="ttdoc">Minor ticks.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8h_source.html#l00043">qwt_scale_div.h:43</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html_af21aedaa886dd5e067cf63505838736ca86796bbf72d5eb7162a924ba27ce6553"><div class="ttname"><a href="class_qwt_scale_div.html#af21aedaa886dd5e067cf63505838736ca86796bbf72d5eb7162a924ba27ce6553">QwtScaleDiv::NTickTypes</a></div><div class="ttdeci">@ NTickTypes</div><div class="ttdoc">Number of valid tick types.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8h_source.html#l00053">qwt_scale_div.h:52</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html"><div class="ttname"><a href="class_qwt_scale_draw.html">QwtScaleDraw</a></div><div class="ttdoc">A class for drawing scales.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8h_source.html#l00035">qwt_scale_draw.h:36</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html_a002528e391ce07246a5d6b05b4bac9d9"><div class="ttname"><a href="class_qwt_scale_draw.html#a002528e391ce07246a5d6b05b4bac9d9">QwtScaleDraw::setLength</a></div><div class="ttdeci">void setLength(double length)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8cpp_source.html#l00732">qwt_scale_draw.cpp:732</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html_a15f91bdd71ec87abe618e00cf18aa3f1"><div class="ttname"><a href="class_qwt_scale_draw.html#a15f91bdd71ec87abe618e00cf18aa3f1">QwtScaleDraw::move</a></div><div class="ttdeci">void move(double x, double y)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8h_source.html#l00118">qwt_scale_draw.h:118</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html_a3d8ac98bc2a52dbc5df76e427b47753c"><div class="ttname"><a href="class_qwt_scale_draw.html#a3d8ac98bc2a52dbc5df76e427b47753c">QwtScaleDraw::getBorderDistHint</a></div><div class="ttdeci">void getBorderDistHint(const QFont &amp;, int &amp;start, int &amp;end) const</div><div class="ttdoc">Determine the minimum border distance.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8cpp_source.html#l00361">qwt_scale_draw.cpp:361</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html_a443d2574ddeedc7bfeb507ee67ec47e2"><div class="ttname"><a href="class_qwt_scale_draw.html#a443d2574ddeedc7bfeb507ee67ec47e2">QwtScaleDraw::minLength</a></div><div class="ttdeci">int minLength(const QFont &amp;) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8cpp_source.html#l00560">qwt_scale_draw.cpp:560</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html_a7a4de0055dc1358e55c3357366a54091"><div class="ttname"><a href="class_qwt_scale_draw.html#a7a4de0055dc1358e55c3357366a54091">QwtScaleDraw::setAlignment</a></div><div class="ttdeci">void setAlignment(Alignment)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8cpp_source.html#l00322">qwt_scale_draw.cpp:322</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html_acd7ceeeac592ef08530788580b461c66a0e16389e135da75f06117d1ee3ef765f"><div class="ttname"><a href="class_qwt_scale_draw.html#acd7ceeeac592ef08530788580b461c66a0e16389e135da75f06117d1ee3ef765f">QwtScaleDraw::BottomScale</a></div><div class="ttdeci">@ BottomScale</div><div class="ttdoc">The scale is below.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8h_source.html#l00045">qwt_scale_draw.h:45</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html_acd7ceeeac592ef08530788580b461c66a2386da707d8f736701b8ab98f778648c"><div class="ttname"><a href="class_qwt_scale_draw.html#acd7ceeeac592ef08530788580b461c66a2386da707d8f736701b8ab98f778648c">QwtScaleDraw::TopScale</a></div><div class="ttdeci">@ TopScale</div><div class="ttdoc">The scale is above.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8h_source.html#l00048">qwt_scale_draw.h:48</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html_acd7ceeeac592ef08530788580b461c66a84d42042d94ae7726395ceb578225e1e"><div class="ttname"><a href="class_qwt_scale_draw.html#acd7ceeeac592ef08530788580b461c66a84d42042d94ae7726395ceb578225e1e">QwtScaleDraw::RightScale</a></div><div class="ttdeci">@ RightScale</div><div class="ttdoc">The scale is right.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8h_source.html#l00055">qwt_scale_draw.h:54</a></div></div>
<div class="ttc" id="aclass_qwt_scale_draw_html_acd7ceeeac592ef08530788580b461c66af2a8239964381f18dbd08d4a93a7fa23"><div class="ttname"><a href="class_qwt_scale_draw.html#acd7ceeeac592ef08530788580b461c66af2a8239964381f18dbd08d4a93a7fa23">QwtScaleDraw::LeftScale</a></div><div class="ttdeci">@ LeftScale</div><div class="ttdoc">The scale is left.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__draw_8h_source.html#l00051">qwt_scale_draw.h:51</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html"><div class="ttname"><a href="class_qwt_scale_map.html">QwtScaleMap</a></div><div class="ttdoc">A scale map.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00026">qwt_scale_map.h:27</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_a283100be40b08db7df078b8a0ee1d19c"><div class="ttname"><a href="class_qwt_scale_map.html#a283100be40b08db7df078b8a0ee1d19c">QwtScaleMap::isInverting</a></div><div class="ttdeci">bool isInverting() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00164">qwt_scale_map.h:164</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_a504f1627e0e02ddac03d2ce46507b865"><div class="ttname"><a href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">QwtScaleMap::transform</a></div><div class="ttdeci">double transform(double s) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00137">qwt_scale_map.h:137</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_ab1ee6d62addf3f9cf091d425be9ac642"><div class="ttname"><a href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">QwtScaleMap::invTransform</a></div><div class="ttdeci">double invTransform(double p) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00154">qwt_scale_map.h:154</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html"><div class="ttname"><a href="class_qwt_thermo.html">QwtThermo</a></div><div class="ttdoc">The Thermometer Widget.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8h_source.html#l00046">qwt_thermo.h:47</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a00f3853e0fabfe89cbf47d35c15b0aa4"><div class="ttname"><a href="class_qwt_thermo.html#a00f3853e0fabfe89cbf47d35c15b0aa4">QwtThermo::setOrigin</a></div><div class="ttdeci">void setOrigin(double)</div><div class="ttdoc">Specifies the custom origin.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00491">qwt_thermo.cpp:491</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a0306a248194d2f8c08ba90506122d6ca"><div class="ttname"><a href="class_qwt_thermo.html#a0306a248194d2f8c08ba90506122d6ca">QwtThermo::setScalePosition</a></div><div class="ttdeci">void setScalePosition(ScalePosition)</div><div class="ttdoc">Change the position of the scale.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00515">qwt_thermo.cpp:515</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a0ebd05c24f051ac7d6b98f9e8a0c3035"><div class="ttname"><a href="class_qwt_thermo.html#a0ebd05c24f051ac7d6b98f9e8a0c3035">QwtThermo::setAlarmEnabled</a></div><div class="ttdeci">void setAlarmEnabled(bool)</div><div class="ttdoc">Enable or disable the alarm threshold.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00825">qwt_thermo.cpp:825</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a14657d853d79682452f329d9b37461a3"><div class="ttname"><a href="class_qwt_thermo.html#a14657d853d79682452f329d9b37461a3">QwtThermo::setAlarmLevel</a></div><div class="ttdeci">void setAlarmLevel(double)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00775">qwt_thermo.cpp:775</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a14fd393695698276817c5f93150fcdd5"><div class="ttname"><a href="class_qwt_thermo.html#a14fd393695698276817c5f93150fcdd5">QwtThermo::resizeEvent</a></div><div class="ttdeci">virtual void resizeEvent(QResizeEvent *) override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00267">qwt_thermo.cpp:267</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a171cd5d4db01998a1179a31ba388871a"><div class="ttname"><a href="class_qwt_thermo.html#a171cd5d4db01998a1179a31ba388871a">QwtThermo::pipeRect</a></div><div class="ttdeci">QRect pipeRect() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00385">qwt_thermo.cpp:385</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a1d0c15c3d94e7e063323a9e4d91c58e8"><div class="ttname"><a href="class_qwt_thermo.html#a1d0c15c3d94e7e063323a9e4d91c58e8">QwtThermo::spacing</a></div><div class="ttdeci">int spacing() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00645">qwt_thermo.cpp:645</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a1d5bb3608c29cd8d104f22f0ffe31098"><div class="ttname"><a href="class_qwt_thermo.html#a1d5bb3608c29cd8d104f22f0ffe31098">QwtThermo::QwtThermo</a></div><div class="ttdeci">QwtThermo(QWidget *parent=NULL)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00121">qwt_thermo.cpp:121</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a2e974873b3387a96f400c9d8d93b08dd"><div class="ttname"><a href="class_qwt_thermo.html#a2e974873b3387a96f400c9d8d93b08dd">QwtThermo::setValue</a></div><div class="ttdeci">virtual void setValue(double)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00181">qwt_thermo.cpp:181</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a3268b4ae2737194bf2dddfcbfc0d5808"><div class="ttname"><a href="class_qwt_thermo.html#a3268b4ae2737194bf2dddfcbfc0d5808">QwtThermo::setPipeWidth</a></div><div class="ttdeci">void setPipeWidth(int)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00800">qwt_thermo.cpp:800</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a33b8af6538a01433f73971f3532d0ce0"><div class="ttname"><a href="class_qwt_thermo.html#a33b8af6538a01433f73971f3532d0ce0">QwtThermo::scaleDraw</a></div><div class="ttdeci">const QwtScaleDraw * scaleDraw() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00217">qwt_thermo.cpp:217</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a3d2e1c17d3630cd9dda66bcf913a7a60"><div class="ttname"><a href="class_qwt_thermo.html#a3d2e1c17d3630cd9dda66bcf913a7a60">QwtThermo::setAlarmBrush</a></div><div class="ttdeci">void setAlarmBrush(const QBrush &amp;)</div><div class="ttdoc">Specify the liquid brush above the alarm threshold.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00747">qwt_thermo.cpp:747</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a4d7af32d29d1cc18e23b9143cf7ad498"><div class="ttname"><a href="class_qwt_thermo.html#a4d7af32d29d1cc18e23b9143cf7ad498">QwtThermo::ScalePosition</a></div><div class="ttdeci">ScalePosition</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8h_source.html#l00073">qwt_thermo.h:74</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a4d7af32d29d1cc18e23b9143cf7ad498a54c98c1e9500e24a5f92e71a7020acbd"><div class="ttname"><a href="class_qwt_thermo.html#a4d7af32d29d1cc18e23b9143cf7ad498a54c98c1e9500e24a5f92e71a7020acbd">QwtThermo::NoScale</a></div><div class="ttdeci">@ NoScale</div><div class="ttdoc">The slider has no scale.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8h_source.html#l00076">qwt_thermo.h:76</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a4d7af32d29d1cc18e23b9143cf7ad498aaf66e72accc5a41142773f586158c067"><div class="ttname"><a href="class_qwt_thermo.html#a4d7af32d29d1cc18e23b9143cf7ad498aaf66e72accc5a41142773f586158c067">QwtThermo::TrailingScale</a></div><div class="ttdeci">@ TrailingScale</div><div class="ttdoc">The scale is left of a vertical or above of a horizontal slider.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8h_source.html#l00083">qwt_thermo.h:82</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a4d7af32d29d1cc18e23b9143cf7ad498acda60ddfe6178199553941b75ad927a0"><div class="ttname"><a href="class_qwt_thermo.html#a4d7af32d29d1cc18e23b9143cf7ad498acda60ddfe6178199553941b75ad927a0">QwtThermo::LeadingScale</a></div><div class="ttdeci">@ LeadingScale</div><div class="ttdoc">The scale is right of a vertical or below of a horizontal slider.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8h_source.html#l00079">qwt_thermo.h:79</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a4f3901a508a3d299a3a17b1a2c4753fc"><div class="ttname"><a href="class_qwt_thermo.html#a4f3901a508a3d299a3a17b1a2c4753fc">QwtThermo::pipeWidth</a></div><div class="ttdeci">int pipeWidth() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00813">qwt_thermo.cpp:813</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a52c28bd5710d494de7f25454b0aebd95"><div class="ttname"><a href="class_qwt_thermo.html#a52c28bd5710d494de7f25454b0aebd95">QwtThermo::origin</a></div><div class="ttdeci">double origin() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00504">qwt_thermo.cpp:504</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a5b51e216ac008a27cc0af38094251917"><div class="ttname"><a href="class_qwt_thermo.html#a5b51e216ac008a27cc0af38094251917">QwtThermo::paintEvent</a></div><div class="ttdeci">virtual void paintEvent(QPaintEvent *) override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00235">qwt_thermo.cpp:235</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a5d772862c760019a7797f45aa6b0690f"><div class="ttname"><a href="class_qwt_thermo.html#a5d772862c760019a7797f45aa6b0690f">QwtThermo::setSpacing</a></div><div class="ttdeci">void setSpacing(int)</div><div class="ttdoc">Change the spacing between pipe and scale.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00629">qwt_thermo.cpp:629</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a6c67fa1b4a79688460508848ee4e106e"><div class="ttname"><a href="class_qwt_thermo.html#a6c67fa1b4a79688460508848ee4e106e">QwtThermo::fillBrush</a></div><div class="ttdeci">QBrush fillBrush() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00731">qwt_thermo.cpp:731</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a7b58050d57df6bbe2c1e067495f8a3dc"><div class="ttname"><a href="class_qwt_thermo.html#a7b58050d57df6bbe2c1e067495f8a3dc">QwtThermo::setBorderWidth</a></div><div class="ttdeci">void setBorderWidth(int)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00655">qwt_thermo.cpp:655</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a8b5ab653b893e41116200570632ad1c3"><div class="ttname"><a href="class_qwt_thermo.html#a8b5ab653b893e41116200570632ad1c3">QwtThermo::setScaleDraw</a></div><div class="ttdeci">void setScaleDraw(QwtScaleDraw *)</div><div class="ttdoc">Set a scale draw.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00207">qwt_thermo.cpp:207</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a8d9285fdda3f6f26fc0d9aa35b5f021e"><div class="ttname"><a href="class_qwt_thermo.html#a8d9285fdda3f6f26fc0d9aa35b5f021e">QwtThermo::colorMap</a></div><div class="ttdeci">QwtColorMap * colorMap()</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00697">qwt_thermo.cpp:697</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a932d866dd7782cc56cd7fc3e5abb3183"><div class="ttname"><a href="class_qwt_thermo.html#a932d866dd7782cc56cd7fc3e5abb3183">QwtThermo::OriginMode</a></div><div class="ttdeci">OriginMode</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8h_source.html#l00091">qwt_thermo.h:92</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a932d866dd7782cc56cd7fc3e5abb3183aa67de5780557c0c2ca93c45059ae932a"><div class="ttname"><a href="class_qwt_thermo.html#a932d866dd7782cc56cd7fc3e5abb3183aa67de5780557c0c2ca93c45059ae932a">QwtThermo::OriginMaximum</a></div><div class="ttdeci">@ OriginMaximum</div><div class="ttdoc">The origin is the maximum of the scale.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8h_source.html#l00097">qwt_thermo.h:97</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a932d866dd7782cc56cd7fc3e5abb3183ad086bebe6a48967d8d078f0c27ee993f"><div class="ttname"><a href="class_qwt_thermo.html#a932d866dd7782cc56cd7fc3e5abb3183ad086bebe6a48967d8d078f0c27ee993f">QwtThermo::OriginCustom</a></div><div class="ttdeci">@ OriginCustom</div><div class="ttdoc">The origin is specified using the origin() property.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8h_source.html#l00101">qwt_thermo.h:100</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a932d866dd7782cc56cd7fc3e5abb3183ae45b6edabbd2a63aa1551b7ed9b10f76"><div class="ttname"><a href="class_qwt_thermo.html#a932d866dd7782cc56cd7fc3e5abb3183ae45b6edabbd2a63aa1551b7ed9b10f76">QwtThermo::OriginMinimum</a></div><div class="ttdeci">@ OriginMinimum</div><div class="ttdoc">The origin is the minimum of the scale.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8h_source.html#l00094">qwt_thermo.h:94</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a95cca109a11bba24d8e8a422a3717ab0"><div class="ttname"><a href="class_qwt_thermo.html#a95cca109a11bba24d8e8a422a3717ab0">QwtThermo::setOriginMode</a></div><div class="ttdeci">void setOriginMode(OriginMode)</div><div class="ttdoc">Change how the origin is determined.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00464">qwt_thermo.cpp:464</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a97df48b3bb00fc5e7af5719d2b5e6ae3"><div class="ttname"><a href="class_qwt_thermo.html#a97df48b3bb00fc5e7af5719d2b5e6ae3">QwtThermo::rangeFlags</a></div><div class="ttdeci">QwtInterval::BorderFlags rangeFlags() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00170">qwt_thermo.cpp:170</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_a9d8083ca1d7c3980f29e996893b73a3b"><div class="ttname"><a href="class_qwt_thermo.html#a9d8083ca1d7c3980f29e996893b73a3b">QwtThermo::value</a></div><div class="ttdeci">double value() const</div><div class="ttdoc">Return the value.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00191">qwt_thermo.cpp:191</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_aa269fa046eaf30491e7c624a1fa0e096"><div class="ttname"><a href="class_qwt_thermo.html#aa269fa046eaf30491e7c624a1fa0e096">QwtThermo::alarmBrush</a></div><div class="ttdeci">QBrush alarmBrush() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00761">qwt_thermo.cpp:761</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_aa2ce6d6d20097fead0baca0ab31ef1b2"><div class="ttname"><a href="class_qwt_thermo.html#aa2ce6d6d20097fead0baca0ab31ef1b2">QwtThermo::setRangeFlags</a></div><div class="ttdeci">void setRangeFlags(QwtInterval::BorderFlags)</div><div class="ttdoc">Exclude/Include min/max values.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00157">qwt_thermo.cpp:157</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_aaa00f3c0a2956a0e9b353a01d23e066a"><div class="ttname"><a href="class_qwt_thermo.html#aaa00f3c0a2956a0e9b353a01d23e066a">QwtThermo::changeEvent</a></div><div class="ttdeci">virtual void changeEvent(QEvent *) override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00277">qwt_thermo.cpp:277</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_aaf82dd868bef1de3ffddb0d534032d6f"><div class="ttname"><a href="class_qwt_thermo.html#aaf82dd868bef1de3ffddb0d534032d6f">QwtThermo::fillRect</a></div><div class="ttdeci">QRect fillRect(const QRect &amp;) const</div><div class="ttdoc">Calculate the filled rectangle of the pipe.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00897">qwt_thermo.cpp:897</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_ac54991c9701c7550590cd1eb3b50f906"><div class="ttname"><a href="class_qwt_thermo.html#ac54991c9701c7550590cd1eb3b50f906">QwtThermo::minimumSizeHint</a></div><div class="ttdeci">virtual QSize minimumSizeHint() const override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00856">qwt_thermo.cpp:856</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_ac60f96f461fe4ba45a9d91d193aa36b9"><div class="ttname"><a href="class_qwt_thermo.html#ac60f96f461fe4ba45a9d91d193aa36b9">QwtThermo::drawLiquid</a></div><div class="ttdeci">virtual void drawLiquid(QPainter *, const QRect &amp;) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00546">qwt_thermo.cpp:546</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_ac8a1eca462e5f260fefd2b95a2bc00b9"><div class="ttname"><a href="class_qwt_thermo.html#ac8a1eca462e5f260fefd2b95a2bc00b9">QwtThermo::setFillBrush</a></div><div class="ttdeci">void setFillBrush(const QBrush &amp;)</div><div class="ttdoc">Change the brush of the liquid.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00720">qwt_thermo.cpp:720</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_ad0e2bd43eae2402ade490a5e6c4ef4ae"><div class="ttname"><a href="class_qwt_thermo.html#ad0e2bd43eae2402ade490a5e6c4ef4ae">QwtThermo::~QwtThermo</a></div><div class="ttdeci">virtual ~QwtThermo()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00137">qwt_thermo.cpp:137</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_ad2ac0e2d496fd3d28f83f61728b83337"><div class="ttname"><a href="class_qwt_thermo.html#ad2ac0e2d496fd3d28f83f61728b83337">QwtThermo::setColorMap</a></div><div class="ttdeci">void setColorMap(QwtColorMap *)</div><div class="ttdoc">Assign a color map for the fill color.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00683">qwt_thermo.cpp:683</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_ad30227f6efef0b8fc0c13a9b2975b6e8"><div class="ttname"><a href="class_qwt_thermo.html#ad30227f6efef0b8fc0c13a9b2975b6e8">QwtThermo::borderWidth</a></div><div class="ttdeci">int borderWidth() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00671">qwt_thermo.cpp:671</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_ad64e8d51c78a359494c48e02d9ce5caa"><div class="ttname"><a href="class_qwt_thermo.html#ad64e8d51c78a359494c48e02d9ce5caa">QwtThermo::alarmEnabled</a></div><div class="ttdeci">bool alarmEnabled() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00837">qwt_thermo.cpp:837</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_ae02388e3d666ef3f40dac21cc1a7d2d6"><div class="ttname"><a href="class_qwt_thermo.html#ae02388e3d666ef3f40dac21cc1a7d2d6">QwtThermo::orientation</a></div><div class="ttdeci">Qt::Orientation orientation() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00455">qwt_thermo.cpp:455</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_ae5088be410bd7611acbcdd914da1f289"><div class="ttname"><a href="class_qwt_thermo.html#ae5088be410bd7611acbcdd914da1f289">QwtThermo::originMode</a></div><div class="ttdeci">OriginMode originMode() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00477">qwt_thermo.cpp:477</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_ae6c0926a7d4d163e08a0f940642b2ea9"><div class="ttname"><a href="class_qwt_thermo.html#ae6c0926a7d4d163e08a0f940642b2ea9">QwtThermo::setOrientation</a></div><div class="ttdeci">void setOrientation(Qt::Orientation)</div><div class="ttdoc">Set the orientation.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00432">qwt_thermo.cpp:432</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_ae8f4e4ceb3c3c6798d026190e9946e8d"><div class="ttname"><a href="class_qwt_thermo.html#ae8f4e4ceb3c3c6798d026190e9946e8d">QwtThermo::scalePosition</a></div><div class="ttdeci">ScalePosition scalePosition() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00530">qwt_thermo.cpp:530</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_ae979dbcb32630eaed69e0ff54a46c4fa"><div class="ttname"><a href="class_qwt_thermo.html#ae979dbcb32630eaed69e0ff54a46c4fa">QwtThermo::alarmRect</a></div><div class="ttdeci">QRect alarmRect(const QRect &amp;) const</div><div class="ttdoc">Calculate the alarm rectangle of the pipe.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00944">qwt_thermo.cpp:944</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_ae9ebb0e3ef6522f4515edf3b39decc69"><div class="ttname"><a href="class_qwt_thermo.html#ae9ebb0e3ef6522f4515edf3b39decc69">QwtThermo::scaleChange</a></div><div class="ttdeci">virtual void scaleChange() override</div><div class="ttdoc">Notify a scale change.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00536">qwt_thermo.cpp:536</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_aee9cf6c14feecc68fd866b0a5c1ab06b"><div class="ttname"><a href="class_qwt_thermo.html#aee9cf6c14feecc68fd866b0a5c1ab06b">QwtThermo::alarmLevel</a></div><div class="ttdeci">double alarmLevel() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00789">qwt_thermo.cpp:789</a></div></div>
<div class="ttc" id="aclass_qwt_thermo_html_af0f87a1fccca9957fb87b4b9f2941f8b"><div class="ttname"><a href="class_qwt_thermo.html#af0f87a1fccca9957fb87b4b9f2941f8b">QwtThermo::sizeHint</a></div><div class="ttdeci">virtual QSize sizeHint() const override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__thermo_8cpp_source.html#l00846">qwt_thermo.cpp:846</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>qwt_thermo.cpp</b></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
